<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>     
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
           ${emp.sex }
		<form action="/demo/emp/updateEmp" method="post">
		   <input type="hidden" name="eid" value="${emp.eid }">
                员工姓名: <input type="text" name="ename" value="${emp.ename }"/>  <br/>
               员工性别:  <input type="radio" name="sex" value="M"  ${emp.sex=="M"?"checked":""}>男    
                 <input type="radio" name="sex" value="F" ${emp.sex=="F"?"checked":""}>女      <br/>
              所属部门:  <select name="did">                 
                 	<c:forEach items="${deptList }" var="dept">
                 		<option value="${dept.did }" ${emp.did==dept.did?"selected":""} >${dept.dname }</option>
                 	</c:forEach>
                 </select>
       <input type="submit" value="修改"/>          
         </form>
</body>
</html>